ostree.git
3 years ago(cargo-release) version 0.13.2
Colin Walters [Thu, 30 Sep 2021 21:25:46 +0000 (17:25 -0400)]
(cargo-release) version 0.13.2

3 years agorepo: Add `auto_transaction` and `TransactionGuard`
Colin Walters [Tue, 28 Sep 2021 19:37:26 +0000 (15:37 -0400)]
repo: Add `auto_transaction` and `TransactionGuard`

This gives auto-cancelling semantics on `Drop`, plus a nicer
`.commit()` method on the transaction.

Matches the currently private `_OstreeRepoAutoTransaction` in the C
library.

3 years ago(cargo-release) start next development iteration 0.13.2-alpha.0
Colin Walters [Thu, 23 Sep 2021 14:11:53 +0000 (10:11 -0400)]
(cargo-release) start next development iteration 0.13.2-alpha.0

3 years ago(cargo-release) version 0.13.1
Colin Walters [Thu, 23 Sep 2021 14:11:17 +0000 (10:11 -0400)]
(cargo-release) version 0.13.1

3 years agorepo: Expose dfd_as_file()
Colin Walters [Tue, 21 Sep 2021 12:59:17 +0000 (08:59 -0400)]
repo: Expose dfd_as_file()

The `dfd()` API returns just an integer.  Add a safe API that
makes a copy of the fd.  What we really want here is `BorrowedFd` from
https://github.com/rust-lang/rfcs/blob/master/text/3128-io-safety.md
but that isn't here yet.

3 years agoMake `SePolicy` have `Send`
Colin Walters [Mon, 20 Sep 2021 21:53:16 +0000 (17:53 -0400)]
Make `SePolicy` have `Send`

It's safe to send between threads, and I want to do so
in ostree-rs-ext to send to a tokio worker thread.

3 years agolib: Reexport libc::AT_FDCWD
Colin Walters [Thu, 9 Sep 2021 15:52:21 +0000 (11:52 -0400)]
lib: Reexport libc::AT_FDCWD

Useful with `Repo::open_at()`.

Right now ostree-rs-ext pulls in libc for this and `fgetxattr`,
but the latter should go into nix.

3 years agosys: Release 0.9.0
Colin Walters [Thu, 9 Sep 2021 12:24:58 +0000 (08:24 -0400)]
sys: Release 0.9.0

Should have been bumped in the previous commit.

3 years agoRelease 0.13
Colin Walters [Thu, 26 Aug 2021 01:21:20 +0000 (21:21 -0400)]
Release 0.13

Just an update to support libostree v2021.4, but bumping semver
because a few APIs (correctly) gained `Option<T>`.

3 years agoRelease 0.12.3
Colin Walters [Wed, 25 Aug 2021 19:50:14 +0000 (15:50 -0400)]
Release 0.12.3

No major changes, just exporting the `ffi` bits.

3 years agoCargo.toml: Bump to glib 0.14.4
Colin Walters [Mon, 23 Aug 2021 19:26:08 +0000 (15:26 -0400)]
Cargo.toml: Bump to glib 0.14.4

Not strictly required for this repo, but it has the new variant
bindings we want in ostree-rs-ext.

3 years agolib: Export ffi too
Colin Walters [Fri, 6 Aug 2021 20:35:13 +0000 (16:35 -0400)]
lib: Export ffi too

Matching how gtk-rs does it.  Right now rpm-ostree does depend
on interacting with `ostree-sys` via the cxxrs bits.

3 years agoRelease 0.12.2
Colin Walters [Fri, 6 Aug 2021 15:00:33 +0000 (11:00 -0400)]
Release 0.12.2

```
Colin Walters (8):
      Add 2021.3 feature
      Re-export glib, gio
      Deny unused results, warn on missing docs (except auto/)
      Add new GLib 0.14 variant types for metadata types
      Fix build with --features=v2021_3, use in CI by default
      Add more documentation for --features=v2021_3
      Use glib-sys via re-exported `glib::ffi` (and similar for gio)
      Release 0.12.2

Luca BRUNO (5):
      cargo: fix version in features chain
      lib: fix 'dox' feature
      cargo: point to docs.rs and clean up
      ostree: release 0.12.1
      cargo: bump ostree-sys to 0.8.1
```

3 years agoUse glib-sys via re-exported `glib::ffi` (and similar for gio)
Colin Walters [Tue, 3 Aug 2021 19:41:30 +0000 (15:41 -0400)]
Use glib-sys via re-exported `glib::ffi` (and similar for gio)

In general only `-sys` crates should depend on other `-sys`
crates.  IOW for us, `ostree-sys` depends on `glib-sys`.

By using the re-export, we avoid needing to keep a version lock
between `glib` and `glib-sys` in our main crate.  And similar
is true of our higher level reverse dependencies (e.g. `ostree-rs-ext`).

Also weaken our dependency to `0.14` as that's clearer.

3 years agoFix build with --features=v2021_3, use in CI by default
Colin Walters [Tue, 3 Aug 2021 14:52:21 +0000 (10:52 -0400)]
Fix build with --features=v2021_3, use in CI by default

It's a huge trap for us not to build with the latest ostree feature
on, I didn't have my IDE configured for it, and CI didn't have
it on.

The previous bump to glib 0.14 broke the Sign code.

3 years agoAdd more documentation for --features=v2021_3
Colin Walters [Tue, 3 Aug 2021 19:01:10 +0000 (15:01 -0400)]
Add more documentation for --features=v2021_3

My previous pass was at the default feature level.

3 years agoAdd new GLib 0.14 variant types for metadata types
Colin Walters [Mon, 2 Aug 2021 18:41:22 +0000 (14:41 -0400)]
Add new GLib 0.14 variant types for metadata types

This way it's more convenient for downstream crates like ostree-rs-ext
to convert loaded variants.

TODO: Can we add a feature for the `gvariant` crate and expose via
that too?

3 years agoDeny unused results, warn on missing docs (except auto/)
Colin Walters [Mon, 2 Aug 2021 19:51:49 +0000 (15:51 -0400)]
Deny unused results, warn on missing docs (except auto/)

And add basic docs for our manually implemented functions.

3 years agocargo: bump ostree-sys to 0.8.1
Luca BRUNO [Mon, 2 Aug 2021 15:49:08 +0000 (15:49 +0000)]
cargo: bump ostree-sys to 0.8.1

3 years agoostree: release 0.12.1
Luca BRUNO [Mon, 2 Aug 2021 15:32:40 +0000 (15:32 +0000)]
ostree: release 0.12.1

3 years agocargo: point to docs.rs and clean up
Luca BRUNO [Mon, 2 Aug 2021 15:17:31 +0000 (15:17 +0000)]
cargo: point to docs.rs and clean up

This removes stale URLs, pointing to the auto-built docpages at
docs.rs and sorting manifest entries.

3 years agolib: fix 'dox' feature
Luca BRUNO [Mon, 2 Aug 2021 15:15:51 +0000 (15:15 +0000)]
lib: fix 'dox' feature

This makes sure docs can be properly built when using the 'dox'
feature. It should fix auto-builds on docs.rs.

3 years agocargo: fix version in features chain
Luca BRUNO [Mon, 2 Aug 2021 14:36:33 +0000 (14:36 +0000)]
cargo: fix version in features chain

This fixes the definition of the `v2016_4` feature.
It restores the chain of versions so that 2016.3 symbols can be
actually reached from newer features/versions.

3 years agoRe-export glib, gio
Colin Walters [Sat, 31 Jul 2021 21:15:03 +0000 (17:15 -0400)]
Re-export glib, gio

Re-export our dependencies.  See https://gtk-rs.org/blog/2021/06/22/new-release.html
"Dependencies are re-exported".  Users will need e.g. `gio::File`, so this avoids
them needing to update matching versions.

Closes: https://github.com/ostreedev/ostree-rs/issues/12
3 years agoAdd 2021.3 feature
Colin Walters [Mon, 26 Jul 2021 16:39:50 +0000 (12:39 -0400)]
Add 2021.3 feature

(We should add doing this as a SOP for ostree releases)

3 years agoBump versions
Colin Walters [Mon, 26 Jul 2021 16:08:29 +0000 (12:08 -0400)]
Bump versions

The glib 0.14 change is semver incompatible.

3 years agoUpdate to glib 0.14
Colin Walters [Thu, 24 Jun 2021 21:38:16 +0000 (17:38 -0400)]
Update to glib 0.14

An intimidating spam of compiler errors at the start, but the
biggest was handling the new convention of `ostree_sys::` => `ffi::`.

This will require a semver bump of course.

3 years agoci: Fix buildroot to use new official image
Colin Walters [Mon, 26 Jul 2021 14:14:48 +0000 (10:14 -0400)]
ci: Fix buildroot to use new official image

Which is maintained and has updated rust.

3 years agoMark src/auto/* as generated
Colin Walters [Mon, 26 Jul 2021 12:01:14 +0000 (08:01 -0400)]
Mark src/auto/* as generated

3 years agorepo_transaction_stats: move to a manual implementation
Luca BRUNO [Wed, 23 Jun 2021 17:12:40 +0000 (17:12 +0000)]
repo_transaction_stats: move to a manual implementation

This moves `RepoTransactionStats` into a manually implemented
source file in order to provide getters to expose relevant
fields.

3 years agoBump sys version requirement
Colin Walters [Thu, 15 Apr 2021 20:41:15 +0000 (16:41 -0400)]
Bump sys version requirement

3 years agoBump versions
Colin Walters [Thu, 15 Apr 2021 20:40:05 +0000 (16:40 -0400)]
Bump versions

3 years agoUpdate to 2021.2
Colin Walters [Fri, 9 Apr 2021 15:18:36 +0000 (15:18 +0000)]
Update to 2021.2

Sync to https://github.com/ostreedev/ostree/releases/tag/v2021.2

3 years agoci: Add GH action to build
Colin Walters [Thu, 8 Apr 2021 17:01:03 +0000 (17:01 +0000)]
ci: Add GH action to build

3 years agorepo: Add concurrency=send
Colin Walters [Fri, 2 Apr 2021 13:47:02 +0000 (13:47 +0000)]
repo: Add concurrency=send

Ultimately a repo is just a file descriptor wrapper with some
cached data, etc.  We can send it between threads, much like how
`gio::File` is `Send`.

Motivated by trying to write to a repo from a separate thread
in https://github.com/cgwalters/ostree-container

3 years agoUpdate rustdoc-stripper
Felix Krull [Fri, 26 Mar 2021 19:44:02 +0000 (20:44 +0100)]
Update rustdoc-stripper

3 years agoBump all versions
Felix Krull [Fri, 26 Mar 2021 19:40:53 +0000 (20:40 +0100)]
Bump all versions

3 years agoRegenerate
Felix Krull [Fri, 26 Mar 2021 19:39:06 +0000 (20:39 +0100)]
Regenerate

3 years agoSwitch to patched ostree gir
Felix Krull [Fri, 26 Mar 2021 19:38:22 +0000 (20:38 +0100)]
Switch to patched ostree gir

3 years agoRegenerate
Felix Krull [Fri, 26 Mar 2021 19:11:25 +0000 (20:11 +0100)]
Regenerate

3 years agoUpdate OSTree-1.0.gir to 2021.1
Felix Krull [Fri, 26 Mar 2021 18:51:56 +0000 (19:51 +0100)]
Update OSTree-1.0.gir to 2021.1

3 years agoFix ostree gir file update
Felix Krull [Fri, 26 Mar 2021 18:35:55 +0000 (19:35 +0100)]
Fix ostree gir file update

3 years agoUpdate common gir files
Felix Krull [Fri, 26 Mar 2021 18:33:55 +0000 (19:33 +0100)]
Update common gir files

3 years agoBump versions
Felix Krull [Sun, 18 Oct 2020 15:02:36 +0000 (17:02 +0200)]
Bump versions

3 years agoRemove outdated sentence in readme
Felix Krull [Sun, 18 Oct 2020 15:02:30 +0000 (17:02 +0200)]
Remove outdated sentence in readme

3 years agosrc: fix tests
Felix Krull [Sun, 18 Oct 2020 15:00:28 +0000 (17:00 +0200)]
src: fix tests

3 years agosrc: manually implement SysrootDeployTreeOpts
Felix Krull [Sun, 18 Oct 2020 11:21:53 +0000 (13:21 +0200)]
src: manually implement SysrootDeployTreeOpts

3 years agoci: fix rawhide stages?
Felix Krull [Sat, 17 Oct 2020 20:51:59 +0000 (22:51 +0200)]
ci: fix rawhide stages?

3 years agoSwitch to patched ostree gir
Felix Krull [Sat, 17 Oct 2020 20:19:52 +0000 (22:19 +0200)]
Switch to patched ostree gir

3 years agoRegenerate based on new gir
Felix Krull [Sat, 17 Oct 2020 19:37:40 +0000 (21:37 +0200)]
Regenerate based on new gir

3 years agogir: update OSTree gir
Felix Krull [Thu, 15 Oct 2020 22:32:52 +0000 (00:32 +0200)]
gir: update OSTree gir

3 years agogir: update misc gir files
Felix Krull [Thu, 15 Oct 2020 22:32:42 +0000 (00:32 +0200)]
gir: update misc gir files

3 years agoUpdate gir file to 2020.6
Felix Krull [Fri, 4 Sep 2020 12:08:12 +0000 (14:08 +0200)]
Update gir file to 2020.6

3 years agoconf: anchor function name patterns to avoid unexpected exclusions
Felix Krull [Wed, 26 Aug 2020 20:18:00 +0000 (22:18 +0200)]
conf: anchor function name patterns to avoid unexpected exclusions

3 years agoBump versions
Felix Krull [Wed, 26 Aug 2020 19:59:52 +0000 (21:59 +0200)]
Bump versions

3 years agoconf: ignore some more special-cased functions
Felix Krull [Wed, 26 Aug 2020 19:50:43 +0000 (21:50 +0200)]
conf: ignore some more special-cased functions

3 years agosrc: add Checksum::from_bytes
Felix Krull [Wed, 26 Aug 2020 19:45:05 +0000 (21:45 +0200)]
src: add Checksum::from_bytes

3 years agoconf: annotate ignores better
Felix Krull [Wed, 26 Aug 2020 19:44:57 +0000 (21:44 +0200)]
conf: annotate ignores better

3 years agosrc: reimplement checksum hex and base64 en/decoding
Felix Krull [Wed, 26 Aug 2020 17:45:32 +0000 (19:45 +0200)]
src: reimplement checksum hex and base64 en/decoding

This allows us to provide actually useful error handling

3 years agosrc: add support for write_deployments_with_options
Felix Krull [Wed, 26 Aug 2020 08:13:01 +0000 (10:13 +0200)]
src: add support for write_deployments_with_options

3 years agoMakefile: only depend on gir bin in gir-report
Felix Krull [Wed, 26 Aug 2020 08:09:25 +0000 (10:09 +0200)]
Makefile: only depend on gir bin in gir-report

3 years agoconf: remove some unfixable TODOs
Felix Krull [Tue, 25 Aug 2020 23:03:41 +0000 (01:03 +0200)]
conf: remove some unfixable TODOs

3 years agosrc: add CommitSizesEntry
Felix Krull [Tue, 25 Aug 2020 22:45:57 +0000 (00:45 +0200)]
src: add CommitSizesEntry

3 years agoDisable some irrelevant functions
Felix Krull [Tue, 25 Aug 2020 21:45:32 +0000 (23:45 +0200)]
Disable some irrelevant functions

3 years agoUpdate to OSTree 2020.5
Felix Krull [Tue, 25 Aug 2020 21:31:58 +0000 (23:31 +0200)]
Update to OSTree 2020.5

3 years agoconf: disable internal Sign subtypes
Felix Krull [Tue, 25 Aug 2020 20:08:23 +0000 (22:08 +0200)]
conf: disable internal Sign subtypes

3 years agosign: add sanity check for sign API
Felix Krull [Tue, 25 Aug 2020 19:46:14 +0000 (21:46 +0200)]
sign: add sanity check for sign API

3 years agogir: fix another out parameter
Felix Krull [Tue, 25 Aug 2020 18:57:36 +0000 (20:57 +0200)]
gir: fix another out parameter

3 years agogir: fix out parameters not being marked correctly
Felix Krull [Tue, 25 Aug 2020 18:50:23 +0000 (20:50 +0200)]
gir: fix out parameters not being marked correctly

3 years agogir: add missing version tag
Felix Krull [Tue, 25 Aug 2020 18:24:04 +0000 (20:24 +0200)]
gir: add missing version tag

3 years agogir: start fixing OSTree.Sign
Felix Krull [Tue, 25 Aug 2020 18:17:25 +0000 (20:17 +0200)]
gir: start fixing OSTree.Sign

I don't think the SignDummy and SignEd25519 types even need to be
visible. The explicit dummy_* and ed25519_* don't need to be visible
either, I suspect.

3 years agogir: switch to gir based on patched upstream source
Felix Krull [Tue, 25 Aug 2020 18:16:38 +0000 (20:16 +0200)]
gir: switch to gir based on patched upstream source

3 years agoSwitch ostree source to git
Felix Krull [Tue, 25 Aug 2020 17:54:35 +0000 (19:54 +0200)]
Switch ostree source to git

3 years agoPATCH: versions on ostree_sign_* functions
Felix Krull [Tue, 25 Aug 2020 17:34:31 +0000 (19:34 +0200)]
PATCH: versions on ostree_sign_* functions

3 years agoPATCH: version on OSTREE_SIGN_NAME_ED25519
Felix Krull [Tue, 25 Aug 2020 17:14:57 +0000 (19:14 +0200)]
PATCH: version on OSTREE_SIGN_NAME_ED25519

3 years agoPATCH: version on ostree_repo_commit_modifier_set_sepolicy_from_commit
Felix Krull [Tue, 25 Aug 2020 17:12:01 +0000 (19:12 +0200)]
PATCH: version on ostree_repo_commit_modifier_set_sepolicy_from_commit

3 years agoci: try different Fedora image?
Felix Krull [Tue, 25 Aug 2020 17:02:02 +0000 (19:02 +0200)]
ci: try different Fedora image?

3 years agoUpdate docs
Felix Krull [Tue, 25 Aug 2020 16:44:44 +0000 (18:44 +0200)]
Update docs

3 years agoAdd feature levels to Cargo.toml
Felix Krull [Tue, 25 Aug 2020 16:44:00 +0000 (18:44 +0200)]
Add feature levels to Cargo.toml

3 years agoUpdate to OSTree 2020.4
Felix Krull [Tue, 25 Aug 2020 16:36:37 +0000 (18:36 +0200)]
Update to OSTree 2020.4

3 years agoAdd script to get OSTree-1.0.gir from libostree source build
Felix Krull [Sun, 26 Jul 2020 19:14:25 +0000 (21:14 +0200)]
Add script to get OSTree-1.0.gir from libostree source build

3 years agoFix indentation in readme
Felix Krull [Fri, 24 Jul 2020 13:25:56 +0000 (15:25 +0200)]
Fix indentation in readme

3 years agoBump versions
Felix Krull [Fri, 24 Jul 2020 13:24:00 +0000 (15:24 +0200)]
Bump versions

3 years agoAdd Vagrantfile
Felix Krull [Fri, 24 Jul 2020 13:22:16 +0000 (15:22 +0200)]
Add Vagrantfile

3 years agoAlso remove OSTree-1.0.gir when cleaning gir files
Felix Krull [Fri, 24 Jul 2020 13:00:33 +0000 (15:00 +0200)]
Also remove OSTree-1.0.gir when cleaning gir files

3 years agoAdd command to grab latest OSTree-1.0.gir from Fedora Rawhide
Felix Krull [Fri, 24 Jul 2020 12:57:04 +0000 (14:57 +0200)]
Add command to grab latest OSTree-1.0.gir from Fedora Rawhide

3 years agoci: update readme (and pipeline)
Felix Krull [Fri, 24 Jul 2020 12:23:24 +0000 (14:23 +0200)]
ci: update readme (and pipeline)

3 years agoci: refactor pipeline
Felix Krull [Fri, 24 Jul 2020 11:39:18 +0000 (13:39 +0200)]
ci: refactor pipeline

3 years agoUpdate rustdoc-stripper
Felix Krull [Fri, 24 Jul 2020 10:39:39 +0000 (12:39 +0200)]
Update rustdoc-stripper

3 years agoci: change docs build command
Felix Krull [Fri, 24 Jul 2020 10:31:05 +0000 (12:31 +0200)]
ci: change docs build command

3 years agoSwitch back to upstream gir
Felix Krull [Fri, 24 Jul 2020 10:19:08 +0000 (12:19 +0200)]
Switch back to upstream gir

3 years agoci: test building for non-x86 target
Felix Krull [Thu, 23 Jul 2020 16:46:47 +0000 (18:46 +0200)]
ci: test building for non-x86 target

3 years agoci: use --workspace instead of --all
Felix Krull [Thu, 23 Jul 2020 16:51:49 +0000 (18:51 +0200)]
ci: use --workspace instead of --all

3 years agoci: update sccache
Felix Krull [Thu, 23 Jul 2020 16:48:37 +0000 (18:48 +0200)]
ci: update sccache

3 years agosrc: use libc::c_char to improve non-x86 compatibility
Felix Krull [Thu, 23 Jul 2020 15:46:14 +0000 (17:46 +0200)]
src: use libc::c_char to improve non-x86 compatibility

3 years agotests: use RepoMode::Archive (seems to be less finicky)
Felix Krull [Thu, 23 Jul 2020 15:40:34 +0000 (17:40 +0200)]
tests: use RepoMode::Archive (seems to be less finicky)

3 years agoUse forked gir with updated shell-words and cleaned-up build.rs
Felix Krull [Thu, 23 Jul 2020 15:31:13 +0000 (17:31 +0200)]
Use forked gir with updated shell-words and cleaned-up build.rs

3 years agosys: remove pkg-config dependency
Felix Krull [Thu, 23 Jul 2020 15:14:40 +0000 (17:14 +0200)]
sys: remove pkg-config dependency

3 years agoconf: disable RepoFinder methods that don't autogenerate correctly
Felix Krull [Wed, 1 Apr 2020 18:21:48 +0000 (20:21 +0200)]
conf: disable RepoFinder methods that don't autogenerate correctly

3 years agogir: patch ostree_repo_finder_avahi_new
Felix Krull [Thu, 23 Jul 2020 14:34:50 +0000 (16:34 +0200)]
gir: patch ostree_repo_finder_avahi_new

Should be fixed in the next upstream release

Ref: https://github.com/ostreedev/ostree/pull/2051